<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>015模板字符串</title>
</head>

<body>
    <h1>015模板字符串</h1>
    <script>
        // 1模板字符串
        let name = 'lqj'
        let age = 18
        // console.log('大家好，我叫' + name + '，今年' + age + '岁')
        console.log(`大家好，我叫${name}，今年${age}岁`)
    </script>
</body>

</html>